//
//  EncryptAction.h
//  FinancialStore
//
//  Created by zhenqiu on 16/7/19.
//  Copyright © 2016年 zhenqiu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AES128Base64Util.h"

#define RS_OK 1000
#define RS_USER_AUTH_FAILED 9023
#define HAODAI_FINANCIAL_STORE_DOMAIN @"com.haodai.financial.store.domain"
#define RS_CODE_KEY @"rs_code"
#define RS_MSG_KEY @"rs_msg"


#define AUTH_CACHE_AUTH_KEY @"com.haodai.financestore.authkey"
#define AUTH_CACHE_DID_KEY  @"com.haodai.financestore.didkey"

#define AUTH_KEY @"Eb953db38ae22be0"
#define AUTH_IV @"#u)aK&B-Wrg!G|t6"
#define AUTH_DID @(10002)
#define SERVER_VERSION @"1.6"


#define CHANNEL @"AppStore"
#define REF @"hd_11016258"

#ifdef DEBUG

//#define OAUTH2 @"035bcb8cda4734cbcb4ae24f11ae859c"
#define OAUTH2 @"a24ed9b29a8d6b1a38c82990dfec220e"

#else
//#define OAUTH2 @"1dd7f6eb4cf408114b1b8d1f662eda22"
#define OAUTH2 @"a24ed9b29a8d6b1a38c82990dfec220e"

#endif



@interface EncryptAction : NSObject{
    
    
}

+(id)getAuthKey;
+(void)cacheAuthKey:(id)authKey;
+(id)getAuthDid;
+(void)cacheAuthDid:(id)authDid;
+(void)removeAuthKey;

+(id)genAuthDsig:(NSString*)timeStr;


@end
